<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="theme-color" content="#000000" />
  <meta name="description" content="Web site created using create-react-app" />
  <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
  <title>React App</title>
  <style>
    html{
      font-size: 100px;
      padding: 0;
      margin: 0;
      height: 100%;
    }
    body{
      font-size: 16px;
      padding: 0;
      margin: 0;
      height: 100%;
    }
  </style>
</head>

<body>
  <noscript>You need to enable JavaScript to run this app.</noscript>
  <div id="root"></div>
  <script>
    // rem 移动端适配
    function resetWidth() {
      var baseWidth = document.documentElement.clientWidth || document.body.clientWidth;
      document.documentElement.style.fontSize = baseWidth / 375 * 100 + 'px'
    }
    resetWidth();
    window.addEventListener('resize', function () {
      resetWidth();
    })
  </script>
</body>

</html>